@extends('admin.layout.layout')


     @section('content')   
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">用户列表</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>

                  <div class="col-lg-12">
                    <div class="panel panel-default">
                        <!-- /.panel-heading -->
                  <div class="panel-body">
                            <div class="dataTable_wrapper">
                            <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                            <div class="row">
                            <form action="{{url('/admin/fri/list')}}" mothed="get" enctype="multipart/form-data">
                            <div class="col-sm-6"><div class="dataTables_length" id="dataTables-example_length">
                     <label>
                             
                     </label>
                           </div>
                          </div>
                          <div class="col-sm-6">
                           <div id="dataTables-example_filter" class="dataTables_filter">
                            <label>链接名:

                                <input name="keywords" value="@if(!empty($request['keywords'])){{$request['keywords']}}@endif" type="search" class="form-control input-sm" placeholder="" aria-controls="dataTables-example" />
                            </label>
                            <button class="btn btn-info" type="submit">查询</button>
                           </div>
                          </div>
                          </form>
                           </div>


                                 <div class="row"><div class="col-sm-12">
                                 <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" role="grid" aria-describedby="dataTables-example_info">
                                    <thead>
                                        <tr role="row">
                                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 170px;">id</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 207px;">标题</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 188px;">内容</th>
                                         <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 147px;">图片</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 147px;">状态</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 108px;">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>    
                                    @foreach($fri as $k => $v)                               
                                    <tr class="gradeA odd" role="row">
                                            <td class="sorting_1 sid">{{$v->id}}</td>
                                            <td>{{$v->title}}</td>
                                            <td>{{$v->content}}</td>
                                             <td><img src="/uploads/s_{{$v->img}}" alt=""></td>
                                            <td class="center">{{str_replace([1,0],['显示','未显示'],$v->status)}}</td> 
                                            <td class="center">
                                              <a href="{{url('admin/fri/delete',['id' => $v->id])}}">删除</a>
                                                <a href="{{url('admin/fri/edit',['id' => $v->id])}}">修改</a>

                                            </td>
                                        </tr>
                                    @endforeach
                                   </tbody>
                                </table></div></div><div class="row"><div class="col-sm-6"><div class="dataTables_info" id="dataTables-example_info" role="status" aria-live="polite">Showing 1 to 10 of 57 entries</div></div>
                                <div class="col-sm-6">
                                <div class="dataTables_paginate paging_simple_numbers" id="dataTables-example_paginate">
                                {!! $fri->render() !!}
                                
                                </div></div></div>
                            </div>                            
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
    @endsection

 